package ar.edu.unq.dodb.morphia.example;

import ar.edu.unq.dodb.morphia.model.Actor;
import ar.edu.unq.dodb.morphia.store.BasicHome;
import ar.edu.unq.dodb.morphia.store.Home;
import ar.edu.unq.dodb.morphia.store.MorphiaUtils;

public class Ejemplos {
	public static void main(final String[] args) {
		MorphiaUtils.initialize("epers");

		final Home<Actor> homeActor = new BasicHome<Actor>(Actor.class);
		final Actor alexis = homeActor.obtenerPorEquals("nombre", "Alexis");
		final Actor alexis2 = homeActor.obtenerPorEquals("nombre", "Alexis");
		System.out.println(alexis);
		System.out.println(alexis == alexis2);

	}
}
